<?php
namespace app\admin\validate;
use think\Validate;
class Admin extends Validate
{
    protected $rule = [
     ['username','require','用户名不能为空'],
     ['password','require','密码不能为空'],
     ['code','require','验证码不能为空'],
    ];
   protected $scene = [
     'add'=>['username','password','code'],
    ];
}
